import request from "@/utils/request";

/**
 * 试卷模块
 * @param data
 * @returns {AxiosPromise}
 */
export function selectAllTest(current) {
  return request({
    url: '/service-paper/test/selectAllTest',
    method: 'post',
    params:{
      current
    }
  })
}

/**
 * 驳回试卷
 * @param id 试卷id
 * @returns {AxiosPromise}
 */
export function rejectTest(id) {
  return request({
    url: '/service-paper/test/rejectTest',
    method: 'post',
    params:{
      id
    }
  })
}

/**
 * 拒绝试卷信息
 * @param id
 * @returns {AxiosPromise}
 */
export function deleteTest(id) {
  return request({
    url: '/service-paper/test/deleteTest',
    method: 'post',
    params:{
      id
    }
  })
}
